package com.doubi.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class Inform {

  private int id;
  private int uid;
  private int buid;
  private String informContent;
  private String informTime;
  private int releaseId;
  private int commentId;
  private int informType;
  @TableField(exist = false)
  private Releasetable releasetable;//作品信息
  @TableField(exist = false)
  private Userinfo bUserinfo;//发通知人信息
  @TableField(exist = false)
  private Userinfo userinfo;//当前登录用户信息
  @TableField(exist = false)
  private Commenttable commenttable;//评论信息

    /**
     * 点赞表
     */
    @Data
    @Component
    public static class Liketable {
      private int id;
      private int userId;//用户id
      private int releaseId;//作品id
      private String likeTime;//点赞时间
    }
}
